package com.swpu.service_sport.controller;


import com.swpu.commonutils.R;
import com.swpu.service_sport.service.SportCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chaichai
 * @since 2024-02-23
 */
@RestController
@RequestMapping("/service_sport/sport-category")
public class SportCategoryController {

    @Autowired
    private SportCategoryService sportCategoryService;
    @GetMapping("/getSportCategories")
    public R getSportCategories(HttpServletRequest request){
        sportCategoryService.getSportCategories();
        return R.ok();

    }

}

